package com.zzj.hotel.core.utils;

import java.util.Random;

public class IdManager {
	
	/**
	 * 获取32未随机数
	 * @return
	 */
	public static String getId(){
		String base = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";     
	    Random random = new Random();     
	    StringBuffer sb = new StringBuffer();     
	    for (int i = 0; i < 32; i++) {     
	        int number = random.nextInt(base.length());     
	        sb.append(base.charAt(number));     
	    }     
	    return sb.toString();     
	}
	public static void main(String[] args) {
		IdManager manager = new IdManager();
		System.out.println(manager.getId());
	}
}
